using System;

namespace Com.ContentRendering.Api.DataEngine.Exceptions
{
    /// <summary/>
    public class ObjectToStringInvalidException : Exception
    {
        private string _value;

        /// <summary/>
        internal ObjectToStringInvalidException(string value)
        {
            this._value = value;
        }

        /// <summary/>
        public override string Message
        {
            get 
            { 
                return string.Format(
                    Constant.EXCEPTION_OBJECT_TO_STRING_INVALID,
                    this._value); 
            }
        }
    }
}
